﻿<CC:AnimatedBasePage 
    x:Class="TradeMo.SellingView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:CC="clr-namespace:Clarity.Phone.Controls" 
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
	d:DataContext="{d:DesignData SampleData/SellingViewSampleData.xaml}"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait" Margin="0,2,0,-2"
    >

    <Grid x:Name="LayoutRoot" Background="Black">
    	<Grid>
		<Grid.Background>
			<ImageBrush ImageSource="/Wallpaper2.jpg" Stretch="None" Opacity="0.595"/>
		</Grid.Background>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>

		<ProgressBar IsIndeterminate="{Binding IsSearching}" Style="{StaticResource TradeMoProgressBarStyle}" Grid.Row="0" Margin="0,62,0,0" />
        <TextBlock HorizontalAlignment="Center" Grid.Row="0" Text="Selling" VerticalAlignment="Center" Style="{StaticResource PhoneTextLargeStyle}" Foreground="White"/>

        <controls:Pivot BorderThickness="0,62,0,0" Grid.Row="1" Style="{StaticResource PivotStyle1}">
            <controls:PivotItem Header="selling">
				<Grid>
					<ListBox x:Name="SellingListBox"
							ItemsSource="{Binding Selling}" 
							ItemTemplate="{StaticResource ListingDataTemplate}" 
							ItemContainerStyle="{StaticResource SearchResultsListBoxItemStyle}" 
							SelectionChanged="SellingListBox_SelectionChanged" />
				</Grid>
			</controls:PivotItem>

            <controls:PivotItem Header="sold">
				<Grid>
					<ListBox x:Name="SoldListBox"
							ItemsSource="{Binding Sold}" 
							ItemTemplate="{StaticResource ListingDataTemplate}" 
							ItemContainerStyle="{StaticResource SearchResultsListBoxItemStyle}" 
							SelectionChanged="SoldListBox_SelectionChanged" />
				</Grid>
			</controls:PivotItem>
			
            <controls:PivotItem Header="unsold">
				<Grid>
					<ListBox x:Name="UnsoldListBox"
							ItemsSource="{Binding Unsold}" 
							ItemTemplate="{StaticResource ListingDataTemplate}" 
							ItemContainerStyle="{StaticResource SearchResultsListBoxItemStyle}" 
							SelectionChanged="UnsoldListBox_SelectionChanged" />
				</Grid>
			</controls:PivotItem>

        </controls:Pivot>
		</Grid>
    </Grid>

</CC:AnimatedBasePage>